home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / im-switch.prerm < prev    next >
Encoding:
Text File  |  2010-06-22  |  512 b   |  30 lines

  1. #!/bin/sh
  2. set -e
  3.  
  4. ua_remove () {
  5.     update-alternatives \
  6.         --remove xinput-$1 \
  7.         /etc/X11/xinit/xinput.d/$2 ;
  8. }
  9.  
  10. case "$1" in
  11.     remove|upgrade|deconfigure)
  12.         ua_remove all_ALL default
  13.         ua_remove all_ALL default-xim
  14.         ua_remove lo_TH lo-gtk
  15.         ua_remove all_ALL none
  16.         ua_remove th_TH th-xim
  17.         ua_remove th_TH th-gtk
  18.         ;;
  19.     failed-upgrade)
  20.         ;;
  21.     *)
  22.         echo "prerm called with unknown argument \`$1'" >&2
  23.         exit 1
  24.     ;;
  25. esac
  26.  
  27.  
  28.  
  29. exit 0
  30.